﻿using System;
using System.Configuration;

/// <summary>
/// SiteInfo 的摘要说明
/// </summary>
public class SiteInfo
{
    /// <summary>
    /// 是否转到其他站点
    /// </summary>
    /// <returns></returns>
    public static int GetToOtherSite()
    {
        int num = 0;
        try
        {
            num = Convert.ToInt32(ConfigurationManager.AppSettings["ToOtherSite"]);
        }
        catch
        {
            num = 0;
        }
        return num;
    }

    /// <summary>
    /// 总务站点根目录
    /// </summary>
    /// <returns></returns>
    public static string GetZongwuSiteFront()
    {
        string num = "";
        try
        {
            num = ConfigurationManager.AppSettings["ZongwuSiteFront"].ToString();
        }
        catch
        {
            num = "";
        }
        return num;
    }

    /// <summary>
    /// 绩效工资站点根目录
    /// </summary>
    /// <returns></returns>
    public static string GetGongziSiteFront()
    {
        string num = "";
        try
        {
            num = ConfigurationManager.AppSettings["GongziSiteFront"].ToString();
        }
        catch
        {
            num = "";
        }
        return num;
    }

    /// <summary>
    /// 教师、德育、科组跳转站点根目录
    /// </summary>
    /// <returns></returns>
    public static string GetEvalSiteFront()
    {
        string num = "";
        try
        {
            num = ConfigurationManager.AppSettings["EvalSiteFront"].ToString();
        }
        catch
        {
            num = "";
        }
        return num;
    }
}
